package com.scvtc.service.room;

import com.baomidou.mybatisplus.extension.service.IService;
import com.scvtc.domain.ResResult;
import com.scvtc.domain.entity.room.RoomBase;
import com.scvtc.domain.vo.PageVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface RoomBaseService extends IService<RoomBase> {
    ResResult<PageVo<List<RoomBase>>> getAllInfo(Long current, Long size, RoomBase roomBase);
    /**
     * 添加一个会议
     *
     * @param roomBase
     * @return
     */
    ResResult<?> addOneRoom(RoomBase roomBase);

    /**
     * 修改文件
     *
     * @param roomBase
     * @return
     */
    ResResult<?> updateRoom(RoomBase roomBase);

    /**
     * 删除单个学生
     *
     * @param id
     * @return
     */
    @Transactional
    ResResult<?> deleteRoom(Long id);

    /**
     * 删除多个学生
     *
     * @param ids
     * @return
     */
    @Transactional
    ResResult<?> deleteMultipleRoom(Long[] ids);


}
